const sfzReg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
let sfzStr1 = '415106199801012130';
console.log(sfzReg.test(sfzStr1)); 
let sfzStr2 = '718381298381212183';
console.log(sfzReg.test(sfzStr2));